import { fetchPost } from '@/axios/index'
const stuExam = {
  // 考试列表
  // `/api/ExamManager/selectClass?page=${page}&num=${num}&class1=${class1}`
  /*
    fetchPost('/api/ExamManager/selectClass', {}, { page, num, class1 })
  */
  selectStuExamList(page, num, id) {
    return fetchPost(
      `/api/ExamManager/selectClass?page=${page}&num=${num}&id=${id}`
    )
  },
  // 学生端模糊查询
  // /ExamManager/searchClass/{page}
  selectStuExam(page, num, id, searchForm) {
    return fetchPost('/api/ExamManager/searchClass', searchForm, {
      page,
      num,
      id
    })
  },
  // 我的考试
  // /ExamManager/selectOneExam examId
  stuexamTopic(examId) {
    return fetchPost(
      '/api/ExamManager/selectOneExam',
      {},
      {
        examId
      }
    )
  }
}
export default stuExam
